package resource

import (
	context "context"

	"github.com/infraboard/mcube/http/request"
)

const (
	AppName = "resource"
)

type Service interface {
	// 资源保持接口
	Save(context.Context, *Resource) (*Resource, error)
	RPCServer
}

func NewSearchRequest() *SearchRequest {
	return &SearchRequest{
		Page: request.NewDefaultPageRequest(),
		Tags: []*TagSelector{},
	}
}
